﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SMWJamecl.BusinessEntities;
using SMWJamecl.Repository;
using Microsoft.Practices.Unity;

namespace SMWJamecl.BusinessLogic
{
   public class ModeloService: IModeloService
    {

       [Dependency]
       public IModeloRepository ModeloRepository { get; set; }
       

        public List<Modelo> GetAllFromModelos()
        {
            return ModeloRepository.GetAllFromModelos();
        }

        public Modelo GetAllFromModeloId(int id)
        {
            return ModeloRepository.GetAllFromModeloId(id);
        }

        public void AddModelo(Modelo modelo)
        {
            ModeloRepository.AddModelo(modelo);
        }

        public void Edit(Modelo modelo)
        {
            ModeloRepository.Edit(modelo);
        }

        public void Remove(int id)
        {
            ModeloRepository.Remove(id);
        }
    }
}
